<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Div+CSS布局</title>
    <style type="text/css">
        /*div{
            background-color: chartreuse;
            color: aliceblue;
        }
        span{
            background-color: chartreuse;
            color: aliceblue;
        }*/
        body{
            padding: 0;
            margin: 0;
        }
        .div{
            width: 600px;
            height: 600px;
            background-color: green;
            margin: auto;
        }
        .diva{
            width: 240px;
            height: 240px;
            background-color: red;
            float: left;
        }
        .divb{
            width: 240px;
            height: 240px;
            background-color: yellow;
            float: left;
        }
        .div div{
            margin: 10px;
            padding: 10px;
            border: solid 10px;
        }

    </style>
</head>
<body>
    <!--
    <div>
        Hello World!
    </div>
    <span>
        Hello YE!
    </span>
    -->
    <div class="div">
        <div class="diva"></div>
        <div class="divb"></div>
    </div>
</body>
</html>